from sqlalchemy import *
from sqlalchemy.orm import *

from tortuga.database import metadata
from tortuga.models.util import Base

__all__ = ['Content', 'content_table']

# one record per content item (2 pages, 4 blog posts, and 3 templates == 9 content records)
content_table = Table('content', metadata,
    Column('content_id', Integer, primary_key=True),
    Column('content_type', Unicode(50), nullable=False)
)

class Content(Base):
    """Represents a content item like a Page or a NewsItem."""
    pass
    
mapper(Content, content_table)